package com.example.flex.common.struct;

import com.example.flex.domain.RoleEntity;
import com.example.flex.domain.vo.RoleVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author: 不是菜鸡爱编程
 * @Date: 2023/11/07/7:20
 * @Description:
 */
@Mapper(componentModel = "spring")
public interface RoleStructMapper {
    RoleVO roleToRoleVO(RoleEntity role);
    List<RoleVO> roleListToRoleVOList(List<RoleEntity> roles);
}
